<div class="bh-ly-jj-jfhg bh-mtop10">
	<div class="bh-ly-btmb">
		<h1><span>土特产</span></h1>
		<div class="bh-mlt5 bh-mtop10">
			<?php $first = empty($model[0]) ? null : $model[0];?>
			<?php if (is_object($first)):?>
			<dl class="bh-ly-jj-huangou bh-fl">
				<dt><a class='ttc-img-linker' target='_blank' href='<?php echo Yii::app()->createUrl('provide/channel/nativeView',array('id'=>$first->object_id))?>'>
					<?php echo CHtml::image(is_object($first->relatedObj)?$first->relatedObj->getVImg(230,103):'', '', array('class'=>'ttc-big-pic'))?>	</a></dt>
				<dd><b class='ttc-s-title'><?php echo CHtml::value($first, 'relatedObj.fullTitle')?></b><br>￥<span class='ttc-price'><?php echo CHtml::value($first, 'relatedObj.priceInfo.price_dealer')?></span></dd>
			</dl>
			<?php endif;?>
			<div class='ttc-scroller-left bh-fl'></div>
			<div class="scroller-mask ttc-scroller bh-ly-jj-lunhuan bh-fl">
				<ul class='scroller-item-wrapper'>
					<?php foreach ($model as $one):?>
					<li>
						<a bigsrc='<?php echo is_object($one->relatedObj)?$one->relatedObj->getVImg(230,103):''?>' href="<?php echo Yii::app()->createUrl('provide/channel/nativeView',array('id'=>$one->object_id))?>" title='<?php echo CHtml::value($one, 'relatedObj.fullTitle')?>' price='<?php echo CHtml::value($one, 'relatedObj.priceInfo.price_dealer')?>'><?php echo is_object($one->relatedObj)?$one->relatedObj->img(60,60):''?></a>
					</li>
					<?php endforeach;?>
				</ul>
			</div>
			<div class='ttc-scroller-right bh-fl'></div>
			<div class='bh-clear'></div>
		</div>
	</div>
</div>
<?php $this->widget('coms.ui.Scrollerable', array(
	'id' => 'ttc',
	'step' => 3,
	'wrapper' => '.ttc-scroller ul',
	'items' => '.ttc-scroller .scroller-item-wrapper li',
	'direction' => 'left',
	'autoPlay' => false,
))?>
<script>
	$().ready(function() {
		$('.ttc-scroller a').click(function() {
			$ele = $(this);
			url = $ele.attr('href');
			title = $ele.attr('title');
			price = $ele.attr('price');
//			src = $ele.children('img').attr('src');
			src = $(this).attr('bigsrc');
			$('.ttc-big-pic').attr('src', src);
			$('.ttc-s-title').html("<a href='"+url+"' target='_blank'>"+title+"</a>");
			$('.ttc-img-linker').attr('href', this.href);
			$('.ttc-price').html(price);
			return false;
			
		});
		$('.ttc-scroller-right').click(function() {
			$.scrollerable.get('ttc').go();
		})
		$('.ttc-scroller-left').click(function() {
			$.scrollerable.get('ttc').back();
		})
	})
</script>